// -----------------------------------------------
// Author:     code34 nicolas_boiteux@yahoo.fr
// Edited by:  Neumatic
// Warcontext: Delete marker if they are not protected
// -----------------------------------------------
if (!isServer) exitWith {};

private ["_tmparray"];

_tmparray = [];
{
	// If marker is a mission marker (not protected)
	if (!(_x select 9)) then {
		call compile format [" deleteMarker '%1'; ", _x select 0];
	} else {
		_tmparray = _tmparray + [_x];
	};
} foreach wcarraymarker;

wcarraymarker = _tmparray;